Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flush-write-stream

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flush-write-stream

A write stream constructor that supports a flush function that is called before finish is emitted

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is flush-write-stream?

The flush-write-stream npm package is a Node.js module that provides a writable stream with a flush function that is called before the 'finish' event is emitted. This allows for any remaining data to be processed or cleanup tasks to be performed before the stream is closed.

What are flush-write-stream's main functionalities?

Creating a writable stream with a flush function

This feature allows you to create a writable stream that will execute a custom flush function before the stream finishes. The flush function is useful for handling any remaining data or performing cleanup tasks.

const FlushWriteStream = require('flush-write-stream');
const writable = FlushWriteStream((data, enc, cb) => {
  // Write data logic
  cb();
}, (cb) => {
  // Flush logic
  cb();
});

Other packages similar to flush-write-stream

FAQs

Package last updated on 08 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc